package main

import (
	"bytes"
	"flag"
	"fmt"
	"io"
	"os"

	"gitee.com/rocket049/mycrypto"
)

func main() {
	pwd := flag.String("p", "", "password")
	flag.Parse()
	data := bytes.NewBufferString("")
	io.Copy(data, os.Stdin)
	err := mycrypto.CfbEncodeToFile(data.Bytes(), "out.dat", *pwd)
	fmt.Fprintln(os.Stderr, err)
}
